import {request} from '../utils/request.js'
// 话题
const prefix = "/topic";
/**
 * // 获取话题分类
 * @param url 路径
 */
export const getTopicClass = ()=>{
	return request("GET",prefix+"/class");
}
/**
 * // 获取话题分类
 * @param classId 分类id
 * @param current 页数
 */
export const getTopicApi= (current,classId)=>{
	console.log(classId,current)
	return request("GET",prefix+`/topicclass/${classId}/topic/${current}`);
}

/**
 * // 获取热门话题
 * 
 */
export const getHotTopicApi= ()=>{
	return request("GET",prefix+`/hot/topic`);
}
